/*
 * @Description: app
 * @Author: iamsmiling
 * @Date: 2021-06-09 23:19:44
 * @LastEditTime: 2021-06-13 16:09:19
 */
import 'package:credit_business_circle/R/R.dart';
import 'package:credit_business_circle/components/dialog_wrapper/dialog_wrapper.dart';
import 'package:flutter/material.dart';

Future showAppUpgradeDialog(BuildContext context) {
  return showDialog(
      context: context,
      builder: (BuildContext context) {
        return DialogWrapper(builder: (BuildContext context) {
          return Container(
              alignment: Alignment.center,
              padding: EdgeInsets.only(
                  left: R.dimen.dp25,
                  right: R.dimen.dp25,
                  top: R.dimen.dp40,
                  bottom: R.dimen.dp36),
              child: Column(
                mainAxisSize: MainAxisSize.min,
                children: [
                  Text(
                    "发现新版本",
                    style: TextStyle(
                        fontSize: R.dimen.sp18,
                        fontWeight: FontWeight.w600,
                        color: R.color.ff222222),
                  ),
                  Container(
                    margin: EdgeInsets.only(
                        top: R.dimen.dp24, bottom: R.dimen.dp40),
                    child: Text(
                      "V2.02",
                      style: TextStyle(
                          fontSize: R.dimen.sp16,
                          color: R.color.ff222222,
                          fontWeight: FontWeight.w600),
                    ),
                  ),
                  Container(
                      margin: EdgeInsets.only(bottom: R.dimen.dp34),
                      child: Text(
                        "内容更新：信商圈12的解析更新啦！ 重要：显示在APP描述的上方，170字限制 适用：频繁分享重要更新 前提：客户的设备是iOS 11版本以上 活动运营：屠鸭小分队7月20日会开放20个招募名额，来晚了就了啊",
                        style: TextStyle(fontSize: R.dimen.sp13, height: 2),
                      )),
                  ElevatedButton(
                    child: Text("立即更新"),
                    onPressed: () {},
                  )
                ],
              ));
        });
      });
}
